package com.google.code.swingonfire.component.calendar;

import java.awt.Component;
import java.util.EventObject;

import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.event.CellEditorListener;
import javax.swing.table.TableCellEditor;

public class JMonthTableCellEditor implements TableCellEditor
{

    private final JLabel label = new JLabel();

    public JMonthTableCellEditor()
    {
        super();

        label.setHorizontalAlignment(SwingConstants.CENTER);
    }

    @Override
    public Object getCellEditorValue()
    {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public boolean isCellEditable(EventObject anEvent)
    {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean shouldSelectCell(EventObject anEvent)
    {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public boolean stopCellEditing()
    {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public void cancelCellEditing()
    {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void addCellEditorListener(CellEditorListener l)
    {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void removeCellEditorListener(CellEditorListener l)
    {
        // TODO Auto-generated method stub
        
    }

    @Override
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
    {
        // TODO Auto-generated method stub
        return null;
    }

    

//    /**
//     * {@inheritDoc}
//     */
//    @Override
//    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
//        int row, int column)
//    {
//        Entry entry = (Entry) value;
//
//        label.setText(entry.getText());
//        label.setOpaque(true);
//
//        if (isSelected)
//        {
//            label.setBackground(table.getSelectionBackground());
//        }
//        else
//        {
//            label.setBackground(table.getBackground());
//        }
//
//        return label;
//    }

}
